package tehMod;

import net.minecraft.src.Entity;
import net.minecraft.src.NBTTagCompound;
import net.minecraft.src.World;

public class EntityWaypoint extends Entity {

	public EntityWaypoint(World worldObj, int x, int y, int z) {
		super(worldObj);
		setPosition(x, y, z);
	}

	@Override
	protected void entityInit() {
	}

	@Override
	protected void readEntityFromNBT(NBTTagCompound nbttagcompound) {
		setPosition(nbttagcompound.getDouble("posX"), nbttagcompound.getDouble("posY"), nbttagcompound.getDouble("posZ"));
	}

	@Override
	protected void writeEntityToNBT(NBTTagCompound nbttagcompound) {
		nbttagcompound.setDouble("posX", posX);
		nbttagcompound.setDouble("posY", posY);
		nbttagcompound.setDouble("posZ", posZ);
	}

}
